

f = open(file = 'test_file/file_test11.txt', mode = 'r+',encoding='utf-8')
f.write("\n newline 1 hahahaha")
f.write("\n newline 2 hahahaha")
f.write("\n newline 3 hahahaha")
f.write("\n newline 4 hahahaha")
f.write("\n newline 5 hahahaha")
data = f.read()
f.close()

#
# f = open(file = 'file_test.txt',mode ='rb')
# # f = open(file = 'file_test.txt',mode ='r',encoding='utf-8')
#
# data = f.read()
# print(data)
#
# f.close()